<!--#include("_header.html")-->

<!--@if($grant->view && $module_info->default_style != 'blog')-->
<form class="srch_form" action="{getUrl()}" method="get" onsubmit="return procFilter(this, search)" id="fo_search" no-error-return-url="true">
    <fieldset>
        <legend class="blind">{$lang->search}</legend>
        <!--@if($vid)-->
        <input type="hidden" name="vid" value="{$vid}" />
        <!--@end-->
        <input type="hidden" name="mid" value="{$mid}" />
        <input type="hidden" name="listStyle" value="{$listStyle}" />
        <input type="hidden" name="category" value="{$category}" />
		<input type="hidden" name="search_target" value="title_content" />

        <select class="sel_tip_cg" name="category" cond="$category_list && $module_info->use_category">
        	<option value="">{$lang->category}</option>
        	<!--@foreach($category_list as $val)-->
        	<option value="{$val->category_srl}" <!--@if($category==$val->category_srl)-->selected="selected"<!--@end-->>{str_repeat("&nbsp;&nbsp;",$val->depth)} {$val->title} <!--@if($val->document_count)-->({$val->document_count})<!--@end--></option>
        	<!--@end-->
        </select>
         <span class="ipt_box"|cond="$category_list && $module_info->use_category" class="ipt_box_2"|cond="!($category_list && $module_info->use_category)">
            <input id="ipt_srch_msg" type="text" name="search_keyword" value="{htmlspecialchars($search_keyword)}" class="iText" title="{$lang->cmd_search}" placeholder="Search" />
        </span>
        <!--@if($last_division)-->
        <span class="btn"><a href="{getUrl('page',1,'document_srl','','division',$last_division,'last_division','')}">{$lang->cmd_search_next}</a></span>
        <!--@end-->
        <input type="submit" class="btn_sbmt" value="{$lang->cmd_search}"/>
    </fieldset>
</form>
<!--@end-->

<!--@if($oDocument->isExists() && $module_info->default_style != 'blog')-->
<div class="viewDocument">
    <!--#include("./view_document.html")-->
</div>
<!--@end-->
<!--@if(!$document_srl)-->
<!--@if($module_info->default_style == 'webzine')-->
    <!--#include("./_style.webzine.html")-->
<!--@elseif($module_info->default_style == 'gallery' && !$document_srl)-->
    <!--#include("./_style.gallery.html")-->
<!--@elseif($module_info->default_style == 'forum')-->
    <!--#include("./_style.forum.html")-->
<!--@elseif($module_info->default_style == 'blog')-->
    <!--#include("./_style.blog.html")-->
<!--@elseif($module_info->default_style != 'gallery')-->
    <!--#include("./_style.list.html")-->
<!--@end-->
<!--@end-->

<div class="boardNavigation">

    <div class="btnArea" cond="$is_logged && !$document_srl">
		<span class="btn"><a href="{getUrl('act','dispBoardWrite','document_srl','')}">Add New Folder...</a></span>
    </div>

    <block cond="!$document_srl">
    <div class="pagination">
        <ul>
            <li class="first">
                <a href="{getUrl('page',1,'document_srl','','division',$division,'last_division',$last_division)}">First</a>
            </li>
            <li class="prev">
                <!--@if($page>1)-->
                <a href="{getUrl('page',$page-1,'document_srl','','division',$division,'last_division',$last_division)}">Prev</a>
                <!--@else-->
                <a href="{getUrl('page',1,'document_srl','','division',$division,'last_division',$last_division)}">Prev</a>
                <!--@end-->
            </li>
            <!--@while($page_no = $page_navigation->getNextPage())-->
                <!--@if($page == $page_no)-->
                    <li><strong>{$page_no}</strong></li>
                <!--@else-->
                    <li><a href="{getUrl('page',$page_no,'document_srl','','division',$division,'last_division',$last_division)}">{$page_no}</a></li>
                <!--@end-->
            <!--@end-->
            <li class="next">
                <!--@if($page<$page_navigation->last_page)-->
                <a href="{getUrl('page',$page+1,'document_srl','','division',$division,'last_division',$last_division)}">Next</a>
                <!--@else-->
                <a href="{getUrl('page',$page_navigation->last_page,'document_srl','','division',$division,'last_division',$last_division)}">Next</a>
                <!--@end-->
            </li>
            <li class="end"><a href="{getUrl('page',$page_navigation->last_page,'document_srl','','division',$division,'last_division',$last_division)}">End</a></li>
        </ul>
    </div>
    </block>
</div>
<!--#include("_footer.html")-->